<template>
    <div>
        <h1>{{num}}</h1>
        <button @click="$emit('addNum')">+</button>
        <button @click="$emit('addNum2')">+</button>
    </div>
</template>

<script>
export default {
    name: "AppSon",
    props: ["num"]
}
</script>